package com.toKnow.model.dto.transfer;

import com.toKnow.model.dto.UserEditNormalDTO;
import com.toKnow.model.entity.UserInfo;
import org.mapstruct.InheritConfiguration;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserEditNormalDTOTransfer {
    UserEditNormalDTOTransfer INSTANCE = Mappers.getMapper( UserEditNormalDTOTransfer.class );

    @InheritConfiguration
    UserInfo toUserInfo(UserEditNormalDTO userEditNormalDTO);

    @InheritInverseConfiguration
    UserEditNormalDTO fromUserInfo(UserInfo userInfo);

}
